package com.cskaoyan.wxcontroller;

import com.cskaoyan.bean.baseresultVO.BaseRespVo;
import com.cskaoyan.bean.baseresultVO.WxResultListVo;


import com.cskaoyan.service.WxAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author lirui
 * @Date 2021/12/2 22:10
 * @describe:
 */

@RestController
//@RequestMapping("wx/address")
public class WxAddressList {
    @Autowired
    WxAddressService wxAddressService;



    @RequestMapping("list")
    public BaseRespVo addressList(){
       WxResultListVo data= wxAddressService.queryAddress();
        return BaseRespVo.ok(data);

    }
}
